/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Delaware</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15076 (C-0-T14914-S14915-S14916-S15076-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianDelaware()
 * @model extendedMetaData="name='RaceAmericanIndianDelaware'"
 * @generated
 */
public enum RaceAmericanIndianDelaware implements Enumerator {
	/**
	 * The '<em><b>12146</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12146_VALUE
	 * @generated
	 * @ordered
	 */
	_12146(0, "_12146", "1214-6"),

	/**
	 * The '<em><b>12153</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12153_VALUE
	 * @generated
	 * @ordered
	 */
	_12153(1, "_12153", "1215-3"),

	/**
	 * The '<em><b>12161</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12161_VALUE
	 * @generated
	 * @ordered
	 */
	_12161(2, "_12161", "1216-1"),

	/**
	 * The '<em><b>12179</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12179_VALUE
	 * @generated
	 * @ordered
	 */
	_12179(3, "_12179", "1217-9"),

	/**
	 * The '<em><b>12187</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12187_VALUE
	 * @generated
	 * @ordered
	 */
	_12187(4, "_12187", "1218-7"),

	/**
	 * The '<em><b>12195</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12195_VALUE
	 * @generated
	 * @ordered
	 */
	_12195(5, "_12195", "1219-5"),

	/**
	 * The '<em><b>12203</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12203_VALUE
	 * @generated
	 * @ordered
	 */
	_12203(6, "_12203", "1220-3");

	/**
	 * The '<em><b>12146</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12146</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12146
	 * @model literal="1214-6"
	 * @generated
	 * @ordered
	 */
	public static final int _12146_VALUE = 0;

	/**
	 * The '<em><b>12153</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12153</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12153
	 * @model literal="1215-3"
	 * @generated
	 * @ordered
	 */
	public static final int _12153_VALUE = 1;

	/**
	 * The '<em><b>12161</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12161</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12161
	 * @model literal="1216-1"
	 * @generated
	 * @ordered
	 */
	public static final int _12161_VALUE = 2;

	/**
	 * The '<em><b>12179</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12179</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12179
	 * @model literal="1217-9"
	 * @generated
	 * @ordered
	 */
	public static final int _12179_VALUE = 3;

	/**
	 * The '<em><b>12187</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12187</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12187
	 * @model literal="1218-7"
	 * @generated
	 * @ordered
	 */
	public static final int _12187_VALUE = 4;

	/**
	 * The '<em><b>12195</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12195</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12195
	 * @model literal="1219-5"
	 * @generated
	 * @ordered
	 */
	public static final int _12195_VALUE = 5;

	/**
	 * The '<em><b>12203</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12203</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12203
	 * @model literal="1220-3"
	 * @generated
	 * @ordered
	 */
	public static final int _12203_VALUE = 6;

	/**
	 * An array of all the '<em><b>Race American Indian Delaware</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianDelaware[] VALUES_ARRAY =
		new RaceAmericanIndianDelaware[] {
			_12146,
			_12153,
			_12161,
			_12179,
			_12187,
			_12195,
			_12203,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Delaware</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianDelaware> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Delaware</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianDelaware get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianDelaware result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Delaware</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianDelaware getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianDelaware result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Delaware</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianDelaware get(int value) {
		switch (value) {
			case _12146_VALUE: return _12146;
			case _12153_VALUE: return _12153;
			case _12161_VALUE: return _12161;
			case _12179_VALUE: return _12179;
			case _12187_VALUE: return _12187;
			case _12195_VALUE: return _12195;
			case _12203_VALUE: return _12203;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianDelaware(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianDelaware
